/****************************************************************
 * Author: Mike Truong
 * Date: 7/19/2014 12:33 PM
 * Description: Random Test Generator For Ambassador card effect
 * *************************************************************/

#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

int check_ambassador(struct gameState *state){
	int card = ambassador;
	int choice1 = 0;
	int choice2 = 0;
	int choice3 = 0;
	int hP = 0;
	int bonus = 0;
	int result = 0;

	state->whoseTurn = 1;
	state->numPlayers = 3;

	for( choice1 = 0; choice1 < 4; choice1++){
		for(choice2 = 0; choice2 < 4; choice2++){
			for(choice3 = 0; choice3 < 4; choice3++){
				for(hP = 0; hP < 4; hP++){
					if(choice2 > 2 || choice2 < 0){
						result = cardEffect(card,choice1,choice2,choice3,state,hP,&bonus);
						assert(result == -1);
					}
					if(choice1 == hP){
						result = cardEffect(card,choice1,choice2,choice3,state,hP,&bonus);
						assert(result == -1);
					}
				}
			}

		}

	}
	return 0;
}



int main()
{
	int p, deckCount, discardCount, handCount;
	struct gameState G;
	
	for(p = 0; p < 2; p++){
		for(deckCount = 0; deckCount < 5; deckCount++){
			for(discardCount = 0; discardCount < 5; discardCount++){
				for(handCount = 0; handCount < 5; handCount++){
					memset(&G,23,sizeof(int)*deckCount);
					G.deckCount[p] = deckCount;
					memset(G.deck[p], 0,sizeof(int)*deckCount);
					G.discardCount[p] = discardCount;
					memset(G.discard[p], 0, sizeof(int)* discardCount);
					G.handCount[p] = handCount;
					memset(G.handCount[p] = handCount);
					check_ambassador(&G);
				}
			}
		}

	}
	return 0;
}






























}
